Added shell command "cat" (will become "TYPE").
authoroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 22 Jan 2006 18:15:45 +0000 (18:15 +0000)
committeroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 22 Jan 2006 18:15:45 +0000 (18:15 +0000)
gpsbabel/mingw/mkwintesto.c

index 3b25829d4b7f4ba8098ab3841bf3d817c640cf47..005f850ad6d4c83e1bd8ee028a69a6cb7f73723b 100644 (file)
@@ -321,6 +321,17 @@ int argc,
                                                iTranslateQuotes = 1;
                                                iQuoteCount = 1;
                                        }
+                                       /* Is this one of the test sequences where we prepare some data? */
+                                       if (strncmp("cat ",acLineIn,4) == 0) {
+                                               if (iEchoLevel > 0) {
+                                                       f_outputLine(pfTestoOut, "@echo off");
+                                                       f_outputLine(pfTestoOut, "@echo.");
+                                                       iEchoLevel = 0;
+                                               }
+                                               iStart = 4;
+                                               strcat(acLineOut, "TYPE ");
+                                               iTarget = 5;
+                                       }
                                        /* Is this one of the test sequences where we prepare some data by using sed? */
                                        /* we only cater for sed that removes lines - this is only windows after all  */
                                        if (strncmp("sed '/^L",acLineIn,8) == 0) {